package com.jvyou.thread.d05priority;

/**
 * @author 橘柚
 * @version 1.0-SNAPSHOT
 * @Date 2024/7/30 17:10
 * @Description 默认优先级
 */
public class DefaultPriority {

    public static void main(String[] args) {
        // 输出 Thread-0-->5
        new Thread(()->{
            Thread currentThread = Thread.currentThread();
            System.out.println(currentThread.getName()+"-->"+ currentThread.getPriority());
        }).start();
    }
}
